< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03090407.xhp

(section: rem) (bookmark: bm_id3154347)
Rem statement
comments;Rem statement

Rem ステートメント
コメント Rem

Rem Statement [Runtime]
Rem ステートメント [実行時](hd_id3154347.1)

Specifies that a program line is a comment.
プログラム行中のコメント文を指定します。(par_id3153525.2)

(/section: rem)

Syntax:
構文:(hd_id3153360.3)

Rem Text
Rem Text(par_id3154141.4)

Parameters:
パラメータ:(hd_id3151042.5)

Text: Any text that serves as a comment.
Text: コメント文として記入する任意のテキスト(par_id3150869.6)

Tip Icon ヒント You can use the single quotation mark instead of the Rem keyword to indicate that the text on a line is comments. This symbol can be inserted directly to the right of the program code, followed by a comment.
コメント行の指定は、Rem キーワードの代わりに単一引用符 (シングルクォート) 記号を使うこともできます。このキーワードは、通常のプログラムコードの右側に置くこともでき、それ以降の記述はコメント文と見なされます。(par_id3147318.7)

Note Icon 注マーク You can use a space followed by the underline character _ as the last two characters of a line to continue the logical line on the next line. To continue comment lines, you must enter "Option Compatible" in the same Basic module.
空白に続くアンダーライン文字 _ を行の最後の 2 文字として使用して、次の行で論理行を継続することができます。 コメント行を継続するには、同じ Basic モジュールに "Option Compatible" と入力する必要があります。(par_id6187017.)

Example:
例:(hd_id3150012.8)

Sub ExampleMid
Sub ExampleMid(par_id3152939.9)

DIM sVar As String
DIM sVar As String(par_id3153142.10)

sVar = "Las Vegas"
sVar = "Las Vegas"(par_id3145365.11)

Print Mid(sVar,3,5) REM Returns "s Veg"
Print Mid(sVar,3,5) REM 結果の文字列は「s Veg」(par_id3146984.12)

REM Nothing occurs here
REM ここでは何の処理も行われません(par_id3153140.13)

end sub
end sub(par_id3152596.14)


< Prev / Next >